package homework.api01.apitest02;

public class StartsWithDemo {
    public static void main(String[] args) {
        String str = "www.tedu.cn";
        boolean start = str.startsWith("WWw");
        System.out.println(start);//false
        boolean end = str.endsWith("cn");
        System.out.println(end);//true
    }
}
